//引入get post请求方法
import { getData, postData } from "./config.js";

// -------------------------home--------------------------------
// 首页导航分类
export const reqGetCate = () => getData("/api/getcate");
// 首页活动详情
export const reqGetBanner = () => getData("/api/getbanner");
// 首页秒杀详情
export const reqGetseckill = () => getData("/api/getseckill");
// 首页推荐商品
export const reqGethortgoods = () => getData("/api/gethortgoods");

// -------------------------cate--------------------------------
export const reqGetCates = () => getData("/api/getcates");
// -------------------------goodlist--------------------------------
export const reqGetGoodList = (params) => getData("/api/getgoodlist", params);
